package business.report.impl;

import business.report.DrugRetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.DrugRetail;
import report.domain.DrugRetailCriteria;
import report.mapper.DrugRetailMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "drugRetailService")
public class DrugRetailServiceImpl implements DrugRetailService{
    @Autowired
    DrugRetailMapper drugRetailMapper;

    @Override
    public List<DrugRetail> getDrugRetail() {
        DrugRetailCriteria criteria = new DrugRetailCriteria();
        criteria.createCriteria().getAllCriteria();
        return drugRetailMapper.selectByExample(criteria);
    }
}
